from pylab import *

ref=imread('im_01.png').astype(double)[:,:,0]
im=imread('im_06.png').astype(double)[:,:,0]


im2=im-ref

im2=im2-im2.min()

im2=1-im2/im2.max()

im2=im2>.6

imshow(im2),colorbar()

gray()

imsave('imagenGuardada.png',im2)
